package com.cfs.svc.bz;

import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import com.cfs.po.bz.TreeNode;
import com.cfs.vo.Condition;

@Path("/treenode")
public interface TreeNodeService {
	
	@GET
	@Path("/get/{id}")
	public TreeNode get(@PathParam("id")Long id);
	
	@POST
	@Path("/get")
	public List<TreeNode> list(Condition c);

	@POST
	@Path("/add")
	public Long add(TreeNode t);

	@GET
	@Path("/del/{id}")
	public int deleteById(@PathParam("id")Long id);

	@POST
	@Path("/upd")
	public Long update(TreeNode t);
	
	@POST
	@Path("/list")
	public List<TreeNode> listAll();

	@GET
	@Path("/query/{col_id}")
	public List<TreeNode> query(@PathParam("col_id")Long col_id);
}